package com.example.test;

/**
 * TODO: 这里要写注释的!
 */
public class ProducerConsumerMain {
    public static void main(String[] args) {
        EventStorage eventStorage= new EventStorage();
        Producer producer= new Producer(eventStorage);
        Thread pThread= new Thread(producer);
        Consumer consumer= new Consumer(eventStorage);
        Thread cThread= new Thread(consumer);
        pThread.start();
        cThread.start();
    }
}
